package com.mszlu.blog.dao.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mszlu.blog.dao.pojo.Admin;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface AdminMapper extends BaseMapper<Admin> {

    @Select("select * from ms_admin where account=#{account} and password=#{password} limit 1")
    Admin findAdminUser(@Param("account") String account, @Param("password") String password);


    List<Admin> findAllAdminUser();
}
